package com.howtodoinjava.model;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.howtodoinjava.style.CustomToStringStyle;

public abstract class AbstractUser implements Serializable {
	private static final long serialVersionUID = 1L;

	private int id;
	private String firstName;
	private String lastName;
	private String age;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	/*
	 * @Override public String toString() { return
	 * ToStringBuilder.reflectionToString(this, new CustomToStringStyle()); }
	 */

	@Override
	public String toString() {
		return new ToStringBuilder(this)
				.append("firstName", firstName)
				.append("lastName", lastName)
				.append("age", age).toString();
	}
}
